var con = require("../../../utils/data.js");

Page({
  data: {
  },
  onLoad: function () {
    var that = this; 

    var requestOne = [
      { "id": "1", "wxappid": "6", "name": "家装定制", "img": "http://ow1m1usz0.bkt.clouddn.com/jzdz-%E9%9D%9E%E6%A0%87%E9%97%A83.jpg?imageView2/1/w/750/h/350/format/jpg/interlace/0/q/100|watermark/2/text/6YOR5Lyg5piOMTM4ODIwNTU2NjI=/font/5a6L5L2T/fontsize/1100/fill/I0VGRUZFRg==/dissolve/92/gravity/Center", "intro": "公司环境介绍", "createtime": "1500078445" },
      { "id": "2", "wxappid": "6", "name": "钛合金门", "img": "http://ow1m1usz0.bkt.clouddn.com/jzdz-%E9%9A%94%E6%96%AD%E9%97%A83.jpg?imageView2/1/w/750/h/350/format/jpg/interlace/0/q/100|watermark/2/text/6YOR5Lyg5piOMTM4ODIwNTU2NjI=/font/5a6L5L2T/fontsize/1100/fill/I0VGRUZFRg==/dissolve/92/gravity/Center", "intro": "案例1", "createtime": "1500078482" }, 
      { "id": "3", "wxappid": "6", "name": "独特个性衣帽间", "img": "http://ow1m1usz0.bkt.clouddn.com/jzdz-%E8%A1%A3%E5%B8%BD%E9%97%B4.jpg?imageView2/1/w/750/h/350/format/jpg/interlace/0/q/100|watermark/2/text/6YOR5Lyg5piOMTM4ODIwNTU2NjI=/font/5a6L5L2T/fontsize/1100/fill/I0VGRUZFRg==/dissolve/92/gravity/Center", "intro": "公司案例介绍", "createtime": "1500078508" }, 
      { "id": "4", "wxappid": "6", "name": "其他相关材料", "img": "http://ow1m1usz0.bkt.clouddn.com/jzdz-%E9%9B%86%E6%88%90%E5%90%8A%E9%A1%B61.jpg?imageView2/1/w/750/h/350/format/jpg/interlace/0/q/100|watermark/2/text/6YOR5Lyg5piOMTM4ODIwNTU2NjI=/font/5a6L5L2T/fontsize/1100/fill/I0VGRUZFRg==/dissolve/92/gravity/Center", "intro": "装修行业介绍", "createtime": "1500078605" },
      { "id": "5", "wxappid": "6", "name": "醪糟一绝", "img": "http://ow1m1usz0.bkt.clouddn.com/jzdz_lz_t6.jpg", "intro": "装修行业介绍", "createtime": "1500078605" }];


  that.setData({
    cartoon: requestOne
  });




  },
  onShareAppMessage: function (res) {

    if (res.from === 'button') {
      // 来自页面内转发按钮
      console.log(res.target)
    }
    return {
      title: this.data.DefaultData.details.details_subject,
      path: '/pages/decor/cartoon/cartoon',
      success: function (res) {
        // 转发成功
        console.log("转发已经成功");
      },
      fail: function (res) {
        console.log("转发已经失败");
      }
    }
  },
  bindDtap: function (e) {
    var len = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: 'cartoonD/cartoonD?id=' + len
    }) 
  }
})
